package org.bud.rung.bit.cron;

import java.time.LocalDateTime;
import java.util.function.Supplier;

/**
 * @author shaun
 * @date 2024/8/11
 * @instruction
 */
public interface CronItem {
    void init(LocalDateTime last,boolean initial);
    void type(Supplier<CronType> typsSup,String cron);
    void reset(boolean preAdder,boolean preStop);
    Integer next();
    boolean toAdder();
    boolean isStop();
    boolean checkNext();
    boolean initial();
    CronType getType();
    LocalDateTime last();
}
